class CollectionModel {
  int? collectCount;
  int? commentCount;
  String? cover;
  String? createdAt;
  bool? hasBought;
  String? id;
  bool? isRecommend;
  int? likeCount;
  int? mediaCount;
  String? name;
  int? price;
  String? updateTime;
  int? viewCount;

  CollectionModel(
      {this.collectCount,
      this.commentCount,
      this.cover,
      this.createdAt,
      this.hasBought,
      this.id,
      this.isRecommend,
      this.likeCount,
      this.mediaCount,
      this.name,
      this.price,
      this.updateTime,
      this.viewCount});

  CollectionModel.fromJson(Map<String, dynamic> json) {
    collectCount = json['collectCount'];
    commentCount = json['commentCount'];
    cover = json['cover'];
    createdAt = json['createdAt'];
    hasBought = json['hasBought'];
    id = json['id'];
    isRecommend = json['isRecommend'];
    likeCount = json['likeCount'];
    mediaCount = json['mediaCount'];
    name = json['name'];
    price = json['price'];
    updateTime = json['updateTime'];
    viewCount = json['viewCount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['collectCount'] = this.collectCount;
    data['commentCount'] = this.commentCount;
    data['cover'] = this.cover;
    data['createdAt'] = this.createdAt;
    data['hasBought'] = this.hasBought;
    data['id'] = this.id;
    data['isRecommend'] = this.isRecommend;
    data['likeCount'] = this.likeCount;
    data['mediaCount'] = this.mediaCount;
    data['name'] = this.name;
    data['price'] = this.price;
    data['updateTime'] = this.updateTime;
    data['viewCount'] = this.viewCount;
    return data;
  }
}
